﻿using SXFramWork.Core;
using SXFramWork.Model.SysOrganizeUser;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Repository.Repository
{
    public class SysOrganizeUserRepository:RepositoryAbstract<SysOrganizeUserEntity>,ISysOrganizeUserRepository
    {
        public SysOrganizeUserRepository(IDbContext dbContext) : base(dbContext)
        {

        }

        public async Task<int> DeleteByUserId(string userId)
        {
            return await FromSql.ExecuteAsync("delete from sysorganizeuser where sysuserid=@uid", new { uid = userId });
        }
    }
}
